import {ajax_tool} from './ajax.js'
import api from './api.js'
//引入ajax+promise内容
//登陆请求
export function login(data){
  return  ajax_tool("POST",
            api.loginApi,
            data)
}
//预约记录请求
export function report(data){
  return  ajax_tool("POST",
            api.report,
            data)
}
//选择日期请求
export function chooseList(data){
  return  ajax_tool("GET",
            api.chooseList,
            data)
}
//根据日期请求场次请求
export function chooseDay(data){
  return  ajax_tool("GET",
            api.chooseDay,
            data)
}
//预约请求
export function bookDay(data){
  return  ajax_tool("POST",
            api.bookDay,
            data)
}
//二维码请求
export function getCode(data){
  return  ajax_tool("GET",
            api.getCode,
            data)
}